package Practice05.test7;

public class test {
    public static void main(String[] args) {
        Stack s=new Stack();
        s.put('a');
        System.out.println(s.string);
        s.put('b');
        System.out.println(s.string);
        s.put('c');
        System.out.println(s.string);
        Queue q=new Queue();
        q.put('a');
        System.out.println(q.string);
        q.put('b');
        System.out.println(q.string);
        q.put('c');
        System.out.println(q.string);
        System.out.println("\n栈:");
        System.out.println(s.get());
        System.out.println(s.get());
        System.out.println(s.get());
        System.out.println("\n队列:");
        System.out.println(q.get());
        System.out.println(q.get());
        System.out.println(q.get());
    }
}
